<?php

class Users extends Illuminate\Database\Eloquent\Model {
    protected $table = "laskiga_Users";
    protected $primaryKey = "user_id";
    
    public static function get_email($id) {
        $user = Users::find($id);
        return $user->user_email;
    }
    public static function get_id($email) {
        $user = Users::where('user_email', '=', $email)->first();
        return $user->user_id;
    }
}